package com.icloud.article.boot.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
@Builder
@ApiModel(value = "聊天邀请消息", description = "聊天邀请消息")
@TableName("t_im_invite_message")
public class TIMInviteMessage implements Serializable {
    @ApiModelProperty("主键")
    @EqualsAndHashCode.Include
    @TableId(value="id", type= IdType.AUTO)
    private Long id;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty("前台账号 app_customer.id")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty("申请人Id app_customer.id")
    @TableField(value="applicant_id")
    private Long applicantId;

    @ApiModelProperty("申请人昵称")
    @TableField("applicant_nickname")
    private String applicantNickname;

    @ApiModelProperty("申请人头像url")
    @TableField("applicant_avatar_url")
    private String applicantAvatarUrl;

    @ApiModelProperty("消息内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("消息类型")
    @TableField("message_type")
    private String messageType;

    @ApiModelProperty("群组Id")
    @TableField("group_id")
    private String groupId;

    @ApiModelProperty("是否接受,接受-TRUE,拒绝-FALSE")
    @TableField("is_accept")
    private String isAccept;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;
}
